package joke.ibatis.dao;

import joke.ibatis.po.ContentPo;
import joke.ibatis.po.ParameterPo;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

public class ContentImp extends SqlMapClientDaoSupport implements ContentDao {

	public ContentPo getContentById(String id) {
		ContentPo po = (ContentPo) getSqlMapClientTemplate().queryForObject(
				"getContentById", id);
		return po;
	}

	public void updateJoke(String id) {
		getSqlMapClientTemplate().update("updateJoke", id);
	}

	public ContentPo getContentOrder(ParameterPo parpo) {
		ContentPo po = (ContentPo) getSqlMapClientTemplate().queryForObject(
				"getContentOrder", parpo);
		return po;
	}

}
